package com.service.dao.enums;

import com.google.common.collect.Lists;
import lombok.Getter;

import java.util.List;

/**
 * <dl>
 * <dt>back-end</dt>
 * <dd>Description:</dd>
 * <dd>Copyright: Copyright (C) 2015</dd>
 * <dd>Company: </dd>
 * <dd>CreateDate: 2019年11月10日</dd>
 * </dl>
 *
 * @author
 */
public enum OrderProductOtherStatus {

    NOT_PAY(0, "已下单未支付"),
    PAYED(1, "已支付,待发货"),
    DELIVERED(2, "已发货,待确认"),
    COMPLETED(3, "已完成"),
    NOT_PAY_OVERTIME(4, "未支付,已取消"),
    ;

    @Getter
    private Integer code;

    @Getter
    private String msg;

    OrderProductOtherStatus(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public static List<Integer> getBuyStatus() {
        return Lists.newArrayList(PAYED.code, DELIVERED.code,  COMPLETED.code);
    }
}
